﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Hr.Models;
using Iservices;
using Model;
namespace Hr.Controllers
{
    public class HomeController : Controller
    {
        private readonly ILogger<HomeController> _logger;

        public HomeController(ILogger<HomeController> logger)
        {
            _logger = logger;
        }

        public ActionResult Index()
        {
            return View();
        }
        //public async Task<IActionResult> Index(int? id)
        //{
        //    FenYe fy = new FenYe() { 
        //     Where="",
        //      CurrentPage=Convert.ToInt32(id),
        //       PageSize=3
        //    };
        //   List<users> list=await testServices.UsersSelectFenYe2(fy);
        //    ViewData.Model = list;
        //    //还需要传3个数据
        //    ViewData["cp"]= fy.CurrentPage;
        //    ViewBag.rows = fy.Rows;
        //    ViewBag.pages = fy.Pages;
        //    return View();
        //}

        public IActionResult left()
        {
            return View();
        }
        public IActionResult main()
        {
            return View();
        }
        public IActionResult top()
        {
            return View();
        }

        public IActionResult Privacy()
        {
            return View();
        }

        [ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
        public IActionResult Error()
        {
            return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
        }
    }
}
